/**
 * Created with JetBrains WebStorm.
 * User: Administrator
 * Date: 13-8-29
 * Time: 下午3:34
 * To change this template use File | Settings | File Templates.
 */
(function($){
    $(document).ready(function () {
        /*模板引擎设置*/
        _.templateSettings = {
            interpolate: /\{\{(.+?)\}\}/g
        };

        var InvoiceItemModel=Backbone.Model.extend({

        });

        var InvoiceItemFormView=Backbone.View.extend({
            className:"invoice-item-form-view",

            bindings:{
                '#description':'description',
                '#price':'price',
                '#quantity':'quantity'
            },

            render:function(){
                var html='<label>Description:</label>'+
                    '<input type="text" id="description"/><br/>'+
                    '<label>Price:</label>'+
                    '<input type="text" id="price"/><br/>'+
                    '<label>Quantity:</label>'+
                    '<input type="text" id="quantity"/><br/>';

                $(this.el).html(html);
            }
        });

    });
})(jQuery);

